package com.cdc.dragger7;

import javax.inject.Singleton;

import dagger.Module;
import dagger.Provides;

@Module(includes= {HttpModule.class})
public class UserModule {
	private Content content;
	
	public UserModule(Content content) {
		this.content=content;
	}
	@Provides
	public UserManager provideUserManager(ApiService apiService,UserStore userStore) {
		return new UserManager(apiService,userStore);
	}
	/**
	 * 提供UserStore
	*/
	@Provides
	public UserStore provideUserStore() {
		return new UserStore(content);
	}
	
	/**
	 * 提供ApiService
	*/
	@Provides
	public ApiService provideApiService(OKHttpClient mOKHttpClient) {
		return new ApiService(mOKHttpClient);
	}
	
	
	

}
